/**
 ********************************************************************
 * @author roocket
 * @file    user.h
 * @version V0.0.0
 * @date    2024/3/22
 * @brief   This file is to indicate user functions. 
 * @attention Code file rules:
 * rule: file encoding use UTF8;
 * rule: max line length 120 characters;
 * rule: line separator \r\n;
 * rule: use clion auto code format tool.
 */
#ifndef _USER_H_
#define _USER_H_

#include "video.h"

/*-- data or structure --*/
struct user_video_structure
{
    int pix_width;   /* the width of pixel */
    int pix_height;  /* the height of pixel */
    int pix_fmt;     /* the format of pixel */
    char video_device[128]; /* the device of video */
    char directory[256]; /* the location */
    int bulks_of_videos; /* the bulks of videos */
};

/*-- code or procedure --*/
/**
 * @brief The entry for getting bulks of videos.
 * @param user_vs The user_video_structure.
 * @return Executed result.
 */
int user_video_entry_get_bulks(struct user_video_structure *user_vs);

#endif /* _USER_H_ */
